<?php


namespace app\admin\controller\base;


use app\admin\service\base\StudentPaperService;
use app\BaseController;
use think\response\Json;

class StudentPaper extends BaseController
{
    /**
     * 列表
     * @return Json
     */
    public function index(StudentPaperService $studentPaperService):Json
    {
        $params = request()->param();
        return $studentPaperService->index($params);
    }

    /**
     * 列表
     * @return Json
     */
    public function index2(StudentPaperService $studentPaperService):Json
    {
        $params = request()->param();
        return $studentPaperService->index2($params);
    }

    /**
     * 列表
     * @return Json
     */
    public function read(StudentPaperService $studentPaperService):Json
    {
        $params = request()->param();
        return $studentPaperService->read($params);
    }

    /**
     * 学生题目打分
     * @param StudentPaperService $studentPaperService
     * @return Json
     */
    public function scoring(StudentPaperService $studentPaperService):Json
    {
        $params = request()->param();
        return $studentPaperService->scoring($params);
    }

    /**
     * 绑定学生
     * @param StudentPaperService $studentPaperService
     * @return Json
     */
    public function binding(StudentPaperService $studentPaperService):Json
    {
        $params = request()->param();
        return $studentPaperService->binding($params);
    }
}